<template>
    <div>
      <h2>测试axios的post请求;为对应仓库新增issues</h2>
    </div>
</template>

<script>
    import axios from 'axios'
    export default {
        name: "testGet",
        async mounted(){
          //da73b32996962cefbe9c40b71d56df643d6193f7
          const body = await axios({
              method: 'post',
              url: 'https://api.github.com/repos/betterDamu/sh_200318/issues',
              data:{
                title: '前端',
                body:"h5 小程序 js html"
              },
              // headers: {'Authorization': 'token da73b32996962cefbe9c40b71d56df643d6193f7'},
          });

          this.issues = body.data;
        }
    }
</script>

<style scoped>

</style>
